//
//  UIView.m
//  Class4_属性
//
//  Created by rimi on 16/3/24.
//  Copyright © 2016年 DBF. All rights reserved.
//

#import "UIView.h"
#import <math.h>
@implementation UIView

//计算面积
- (CGFloat)calArea
{
    return _fra1.size.width*_fra1.size.height;
}
//计算面积差值
- (CGFloat)areaInterveral:(UIView *)view
{
    return [self calArea]-[view calArea];
}
 

@end
